<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false" session="true" 
    errorPage="404.jsp" isErrorPage="false"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>jump</title>
</head>
<body>
<h2>welcome to javaEE</h2>
<hr>
<%!int i=90; %>
<%
	Map map1 = new HashMap();
	map1.put("name", "zxd");
	map1.put("age", "18");
	
	Map map2 = new HashMap();
	map2.put("name", "zxx");
	map2.put("age", "19");
	
	Map map3 = new HashMap();
	map3.put("name", "zxn");
	map3.put("age", "17");
	
	List list = new ArrayList();
	list.add(map1);
	list.add(map2);
	list.add(map3);
	request.setAttribute("list", list);
	
%>
我是重定向<%=i%>${pageContext.request.contextPath},<br>${requestScope}<br>

<c:choose>
	<c:when test="${username=='zxd'}">
		<h3>11111</h3>
	</c:when>
	<c:when test="${username=='zxx'}">
		<h3>22222</h3>
	</c:when>
	<c:otherwise>
		<h3>33333</h3>
	</c:otherwise>
</c:choose>


<c:forEach items="${list }" var="map" varStatus="m">
	${m.index}.${m.count}-${map.name}<br>
</c:forEach>




<% out.print(""); %>
</body>
</html>